home *** CD-ROM | disk | FTP | other *** search
-
-
-
- pppptttthhhhrrrreeeeaaaadddd____sssseeeettttsssscccchhhheeeeddddppppaaaarrrraaaammmm((((3333PPPP)))) pppptttthhhhrrrreeeeaaaadddd____sssseeeettttsssscccchhhheeeeddddppppaaaarrrraaaammmm((((3333PPPP))))
-
-
-
- NNNNAAAAMMMMEEEE
- pthread_setschedparam, pthread_getschedparam - change thread scheduling
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<pppptttthhhhrrrreeeeaaaadddd....hhhh>>>>
-
- iiiinnnntttt pppptttthhhhrrrreeeeaaaadddd____sssseeeettttsssscccchhhheeeeddddppppaaaarrrraaaammmm((((pppptttthhhhrrrreeeeaaaadddd____tttt tttthhhhrrrreeeeaaaadddd,,,, iiiinnnntttt ppppoooolllliiiiccccyyyy,,,,
- ccccoooonnnnsssstttt ssssttttrrrruuuucccctttt sssscccchhhheeeedddd____ppppaaaarrrraaaammmm ****ppppaaaarrrraaaammmm))));;;;
-
- iiiinnnntttt pppptttthhhhrrrreeeeaaaadddd____ggggeeeettttsssscccchhhheeeeddddppppaaaarrrraaaammmm((((pppptttthhhhrrrreeeeaaaadddd____tttt tttthhhhrrrreeeeaaaadddd,,,, iiiinnnntttt ****ooooppppoooolllliiiiccccyyyy,,,,
- ssssttttrrrruuuucccctttt sssscccchhhheeeedddd____ppppaaaarrrraaaammmm ****ooooppppaaaarrrraaaammmm))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _p_t_h_r_e_a_d__s_e_t_s_c_h_e_d_p_a_r_a_m() function changes the scheduling policy and
- parameters of the thread identified by _t_h_r_e_a_d to the values specified by
- _p_o_l_i_c_y and _p_a_r_a_m. Changing the scheduling characteristics of an existing
- thread is similar to creating the thread with those attributes [see
- _p_t_h_r_e_a_d__a_t_t_r__s_e_t_s_c_h_e_d_p_o_l_i_c_y() and _p_t_h_r_e_a_d__a_t_t_r__s_e_t_s_c_h_e_d_p_a_r_a_m()]. Only
- the assigned thread priority is changed - a temporary priority elevation
- obtained by acquiring a mutex is not affected [see
- _p_t_h_r_e_a_d__m_u_t_e_x_a_t_t_r__s_e_t_p_r_o_t_o_c_o_l()].
-
- The _p_t_h_r_e_a_d__g_e_t_s_c_h_e_d_p_a_r_a_m() function returns the scheduling policy and
- parameters of the thread identified by _t_h_r_e_a_d via the _o_p_o_l_i_c_y and _o_p_a_r_a_m
- parameters. The assigned thread priority is returned in the
- _s_c_h_e_d__p_r_i_o_r_i_t_y field of _s_c_h_e_d__p_a_r_a_m; the actual priority may be
- temporarily higher if the thread is holding a priority elevating mutex.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- On success _p_t_h_r_e_a_d__s_e_t_s_c_h_e_d_p_a_r_a_m() and _p_t_h_r_e_a_d__g_e_t_s_c_h_e_d_p_a_r_a_m() return
- zero; otherwise an error number is returned:
-
- [[[[EEEESSSSRRRRCCCCHHHH]]]] The _t_h_r_e_a_d parameter does not identify a thread.
-
- [[[[EEEEPPPPEEEERRRRMMMM]]]] The caller lacks sufficient privilege to change the
- scheduling attributes of _t_h_r_e_a_d.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- pthread_attr_setschedparam(3P), pthread_attr_setschedpolicy(3P),
- pthread_mutexattr_setprotocol(3P).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-